<?php 
class CBaseComments extends CBaseEosPlural {

	public function __construct() {		
		return true;
	}
	
	public static function fetchComments( $objDatabase ) {
		$strSql = 'SELECT * FROM `comments`';
		return parent::fetchResults( $strSql, 'CComment', $objDatabase );
	}
	
	public static function fetchCommentById( $intId, $objDatabase ) {
		$strSql = 'SELECT 
						c.* 
					FROM 
						`comments` AS c
					WHERE 
						c.`id` = ' . $intId;
		return parent::fetchResult( $strSql, 'CComment', $objDatabase );
	}
		
}

?>